package jpb.test.subprocess;

/**
* Output provider that outputs an environment variable with a specific key: 'jpb.test.env.key'.
*
* @since v4.3
*/
public class EnvironmentOutputProvider implements ProcessOutputProvider
{
    public static final String ENV_KEY = stringConst("jpb.test.env.key");

    private static String stringConst(String constant) {
        return constant;
    }

    @Override
    public String processOutput() {
        return System.getenv(ENV_KEY);
    }
}
